
const tree = [{
    "code": 1,
    "parentCode": 0,
    "name": "系统管理",
},
{
    "code": 2,
    "parentCode": 142,
    "name": "管理员管理",
},
{
    "code": 3,
    "parentCode": 142,
    "name": "系统角色管理",
},
{
    "code": 6,
    "parentCode": 1,
    "name": "定时任务",
},
{
    "code": 7,
    "parentCode": 6,
    "name": "查看",
},
{
    "code": 8,
    "parentCode": 6,
    "name": "新增",
},
{
    "code": 9,
    "parentCode": 6,
    "name": "修改",
},
{
    "code": 10,
    "parentCode": 6,
    "name": "删除",
}]

module.exports = [
    // get treeData
    {
        url: '/vue-element-admin/sys/tree',
        type: 'get',
        response: _ => {
            return {
                code: 20000,
                data: tree
            }
        }
    },

    // user logout
    {
        url: '/vue-element-admin/user/logout',
        type: 'post',
        response: _ => {
            return {
                code: 20000,
                data: 'success'
            }
        }
    }
]
